function popup(table,control,key)
	{						
		window.open("../codifications/select.aspx?table=" + table + "&control=" + control + "&key=" + key,"Select", "scrollbars=no,resizable=yes, status=no, ,height=460px, width=400px").focus()		
	}
	
function multipopup(table,control,colnum,key)	
	{						
	
		window.open("../codifications/select.aspx?table=" + table + "&control=" + control + "&cols=" + colnum + "&key=" + key,"Select", "scrollbars=no,resizable=yes, status=no, ,height=460px, width=400px").focus()		
	}

function multipopupAccounting(table,control,colnum,key,degree)	
	{						
		window.open("../codifications/select.aspx?table=" + table + "&control=" + control + "&cols=" + colnum + "&key=" + key + "&degree=" + degree,"Select", "scrollbars=no,resizable=yes, status=no, ,height=460px, width=400px").focus()		
	}

function multipopupDOY(table,control,colnum,key,doycode)	
	{						
		window.open("../codifications/selectDOY.aspx?table=" + table + "&control=" + control + "&cols=" + colnum + "&key=" + key + "&doycode=" + doycode,"Select", "scrollbars=no,resizable=yes, status=no, ,height=460px, width=400px").focus()		
	}

function popupLocation(ctrlCity,ctrlCounty,ctrlCountry,Type,DefValue)	
	{
	window.open("../codifications/selectLocation.aspx?City=" + ctrlCity + "&County=" + ctrlCounty + "&Country=" + ctrlCountry + "&Type=" + Type + "&DefValue=" + DefValue,"Select", "scrollbars=no,resizable=yes, status=no, ,height=460px, width=400px").focus()		
	}
function closeform(page)
	{
	if (page=='')
	{			
	var strPath ;
	strPath = window.opener.location.href +'&dummy';	
	//window.opener.location.href='';
	window.opener.location.href = strPath;

	}
	else
	{
		window.opener.location.href = page;
	}	
	window.close();
	}				

function popupClientProviderByEntity(label_obj,text_obj,value_obj,entity)	
	{
	window.open("../codifications/SelectClientProviderByEntity.aspx?entity=" + entity + "&label_obj=" + label_obj+ "&text_obj=" + text_obj+ "&value_obj=" + value_obj,"Select", "scrollbars=yes,resizable=yes, status=no, ,height=600px, width=700px").focus()		
	}
	
function popupSearchLocation(PropertySearchID)	
	{
	window.open("../codifications/SelectPlaces.aspx?PropertySearchID=" + PropertySearchID,"Select", "scrollbars=yes,resizable=yes, status=no, ,height=550px, width=600px").focus()		
	}
		
function popupRooms(PropertySearchID,ReturnField)	
	{
	window.open("../02_Property/SelectRoomsForm.aspx?ID=" + PropertySearchID + "&ReturnField=" + ReturnField ,"Rooms", "scrollbars=yes,resizable=no, status=no, ,height=400px, width=600px").focus()
	}
		
function popupClientProvider(Type)	
	{
	window.open("../codifications/SelectClientProvider.aspx?type=" + Type,"Select", "scrollbars=yes,resizable=yes, status=no, ,height=500px, width=580px").focus()		
	}		
	
function popupProducts(Type)
	{		
		window.open("../codifications/SelectProduct.aspx?type=" + Type,"Select", "scrollbars=yes,resizable=yes, status=no, ,height=500px, width=580px").focus()		
	}
	
function popupExpences()
	{
		window.open("../codifications/SelectExpenses.aspx?Table=INT_ExpenseType","Select", "scrollbars=no,resizable=yes, status=no, ,height=500px, width=580px").focus()		
	}	
	
		
function popupAssets()
	{
		window.open("../codifications/SelectAssets.aspx?Table=INT_FixedAssetType","Select", "scrollbars=no,resizable=yes, status=no, ,height=500px, width=580px").focus()		
	}	
	
		
function getDate(target,object){
		displayDatePicker(target,document.getElementById(object));
		
	}
function defTab(tabvalue){
	document.forms(0).hiddenTab.value=tabvalue;	
	}

function PrintInvoice(strReport,strParentPage) {

//window.opener.location.href=strParentPage;
window.open(strReport,"Select", "scrollbars=yes,resizable=yes, status=no, ,height=550px, width=750px").focus()		

}

function ShowCodPopUp(strTable){

window.open("codShow.aspx?TabDB=" + strTable + "&codID=",'view', "resizable=yes, status=no,height=1px, width=1px").focus()

}

function ConfirmDelete(){
var cnf=confirm('Are you sure you want to delete this record?')
if(cnf){
	return true;
	}
	else
	{
	return false;
	}
}


		function showReport(reportSource,whereClause)
		{
		winlocation = "../Reports/ReportPage.aspx?whereSql=" + whereClause + "&rptSource=" +reportSource +"&RptConnection="
		window.open(winlocation,'ReportPage', "resizable=yes, scrollbars=yes, status=no, height=600, width=850").focus()
		}

function selectpopupdata(objTxt)
{

}