// this file is used by new codebehind files

function NewEvent()	
		{
			//window.open('popup_newevent.aspx','NewTimesheet','width=800,height=600,scrollbars=yes');
			window.open('popup_editdaily.aspx','NewTimesheet','width=800,height=600,scrollbars=yes');
		}

function NewDaily()	
		{
			//window.open('popup_newdaily.aspx','NewDailyReport','width=800,height=700,scrollbars=yes');
			window.open('popup_editdaily.aspx','NewTimesheet','width=800,height=600,scrollbars=yes');

		}

function View_Reward()	
		{
			window.open('mini_RewView.aspx','RewardView','width=325,height=300,scrollbars=yes');
		}
		
function View_Raise()	
		{
			window.open('mini_RaiseView.aspx','RaiseView','width=325,height=300,scrollbars=yes');
		}

function View_Note()	
		{
			window.open('mini_NoteView.aspx','NoteView','width=325,height=300,scrollbars=yes');
		}

function View_Depend()	
		{
			window.open('mini_DependView.aspx','DependView','width=325,height=150,scrollbars=yes');
		}

function PrintList()	
		{
			window.open('mini_printEmpList.aspx','DependView','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintAllCands()	
		{
			window.open('mini_printCandSet.aspx','Candidates','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintAllCands_All()	
		{
			window.open('mini_printCandSet_all.aspx','Candidates','width=700,height=650,scrollbars=yes,resizable=1');
		}				
		
function PrintUsers()	
		{
			window.open('mini_printUserSet.aspx','Users','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintHRInfo()
		{
			window.open('mini_printHR.aspx','Users','width=700,height=650,scrollbars=yes,resizable=1');
			window.open('mini_printVacList.aspx','VacList','width=700,height=650,scrollbars=yes,resizable=1');
		}

function PrintProposals()	
		{
			window.open('mini_proposalDataSet.aspx','Proposals','width=700,height=650,scrollbars=yes,resizable=1');
		}

function PrintCognex()	
		{
			window.open('mini_cognexDataSet.aspx','Cognex','width=700,height=650,scrollbars=yes,resizable=1');
		}

function PrintPO()	
		{
			window.open('popup_POReport.aspx','PO','width=700,height=650,scrollbars=yes,resizable=1');
		}

function PrintPOAll()	
		{
			window.open('mini_printpo.aspx','CompSpecs','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintCompSpec()	
		{
			window.open('mini_compspecDataSet.aspx','CompSpecs','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintPartner()	
		{
			window.open('mini_partnerDataSet.aspx','Proposals','width=700,height=650,scrollbars=yes,resizable=1');
		}
		
function PrintCarrier()	
		{
			window.open('mini_carrierDataSet.aspx','Carriers','width=700,height=650,scrollbars=yes,resizable=1');
		}

function PrintPSList()	
		{
			window.open('mini_PrintPkgSlp.aspx','CompSpecs','width=700,height=650,scrollbars=yes,resizable=1');
			
		}
		
function PrintVacList()	
		{
			window.open('mini_printVacList.aspx','PrintVacList','width=600,height=600,scrollbars=yes,resizable=1');
		}

function PrintMonthTime()	
		{
			window.open('mini_printMonthTime.aspx','PrintVacList','width=600,height=600,scrollbars=yes,resizable=1');
		}

function PrintMonthContact()	
		{
			window.open('mini_printMonthContact.aspx','PrintVacList','width=600,height=600,scrollbars=yes,resizable=1');
		}

function printReport()	
		{
			window.open('frmDR.aspx','DependView','width=500,height=450,scrollbars=yes,resizable=1');
		}

function printTime()	
		{
			window.open('frmTime.aspx','DependView','width=500,height=450,scrollbars=yes,resizable=1');
		}
		
function View_Educ()	
		{
			window.open('mini_EducView.aspx','EducView','width=325,height=160,scrollbars=no');
		}

function View_Item()	
		{
			window.open('mini_ItemsGivenView.aspx','ItemView','width=325,height=160,scrollbars=no');
		}

function View_Allowance()	
		{
			window.open('mini_AllowanceView.aspx','ItemView','width=325,height=160,scrollbars=no');
		}

function View_Refer()	
		{
			window.open('mini_ReferView.aspx','ReferView','width=325,height=160,scrollbars=no');
		}

function View_Hist()	
		{
			window.open('mini_HistView.aspx','ReferView','width=325,height=250,scrollbars=no');
		}
								
function NewContacts()	
		{
			window.open('popup_newcontact.aspx','NewContact','width=800,height=700,scrollbars=yes');
		}
	
function Upload_js()	
		{			
			window.open('upload.aspx?c1=<%=c1%>','NewUploadFile','width=350,height=450,status=1');
			
		}	
		
function Upload_FileM()	
		{			
			window.open('upload_briefcase.aspx','NewUploadFile','width=800,height=600,scrollbars=yes,resize=1');			
		}	
		
function export_CSV()	
		{			
			window.open('frmCont.aspx','ExportCSV','width=640,height=480,scrollbars=no,resizable=1');			
		}	
		
function reloadit()
		{			
			parent.window.close();
		}
		
function printit()
		{			
			window.print();
		}
		
function login_js()
		{			
			Login.submit;
		}
			
function Logout_js()
		{
			if (window.confirm("Are you sure you want to log out?") == true)
			{	
				parent.window.location.href = ("index.aspx");				
			}
			else
			{				
			} 
		}

function WindowClose()
		{
			var searchString = location.search; // returns ?HID= ...
			searchString = searchString.split( '=' );
			var Test = searchString[1];
			
			if(Test = '') 
			{
				window.close();
			}
			
		}
