﻿// JScript File

function nothing() { 

}

function showHideTable(theTable,theImg)
{
if (document.getElementById(theTable).style.display == 'none')
  {
  document.getElementById(theTable).style.display = 'block';
  document.getElementById(theImg).src='images/collapse.gif';
  }
  else
  {
  document.getElementById(theTable).style.display = 'none';
     document.getElementById(theImg).src='images/expand.gif';

  }
}

function ShowEdit() {
	
	var Xpos = (screen.width-430)/2 ;	
	var Ypos = (screen.height-450)/2 ;
	
	documentWindow = window.open('../Edit_PI.aspx' ,'EditPersonalInfo', 'toolbar=no,location=no,status=no,scrollbars=no,width=430,height=450,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}

function ShowEditPW() {
	
	var Xpos = (screen.width-430)/2 ;	
	var Ypos = (screen.height-255)/2 ;
	
	documentWindow = window.open('../Edit_PW.aspx' ,'EditPassword', 'toolbar=no,location=no,status=no,scrollbars=no,width=430,height=255,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}
	
function ShowQSWizard() {
	
	var Xpos = (screen.width-380)/2 ;	
	var Ypos = (screen.height-250)/2 ;
	
	documentWindow = window.open('../QS_Wiz.aspx' ,'QSWizard', 'toolbar=no,location=no,status=no,scrollbars=no,width=380,height=250,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}

function ShowEAWizard() {
	
	var Xpos = (screen.width-380)/2 ;	
	var Ypos = (screen.height-290)/2 ;
	
	documentWindow = window.open('../EA_wiz.aspx' ,'EAWizard', 'toolbar=no,location=no,status=no,scrollbars=no,width=380,height=290,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}
	
	
function ShowNews(p_nID) {
	
	var Xpos = (screen.width-440)/2 ;	
	var Ypos = (screen.height-450)/2 ;
	
	documentWindow = window.open('http://datastore.netronline.com/popups/news.aspx?ID='+p_nID ,'News', 'toolbar=no,location=no,status=no,scrollbars=yes,width=440,height=450,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}


function ShowEditChild(p_nID) {
	
	var Xpos = (screen.width-430)/2 ;	
	var Ypos = (screen.height-420)/2 ;
	
	documentWindow = window.open('../Edit_CA.aspx?id='+p_nID ,'EditEmployeeInfo', 'toolbar=no,location=no,status=no,scrollbars=no,width=430,height=420,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}


function ShowHelp(p_sKeywords) {
	
	var Xpos = (screen.width-465)/2 ;	
	var Ypos = (screen.height-500)/2 ;
	
	documentWindow = window.open('/Help/default.aspx?keywords='+p_sKeywords ,'NETRhelp', 'toolbar=no,location=no,status=no,scrollbars=yes,width=465,height=500,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}

function ShowSurvey() {
	
	var Xpos = (screen.width-495)/2 ;	
	var Ypos = (screen.height-500)/2 ;
	
	documentWindow = window.open('http://www.netronline.com/datastore/feedback.asp' ,'NETRFeedback', 'toolbar=no,location=no,status=no,scrollbars=yes,width=495,height=500,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}

function ShowToolTip(p_nBookID, p_sBookName, p_nCounty) {
	
	var Xpos = (screen.width-430)/2 ;	
	var Ypos = (screen.height-380)/2 ;
	
	documentWindow = window.open('http://www.netronline.com/datastore/tt.asp?BookID=' + p_nBookID + '&BookName=' + p_sBookName+'&County='+p_nCounty,'ToolTip','toolbar=no,location=no,status=no,scrollbars=yes,width=430,height=380,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}

function ShowTour() {
	
	var Xpos = (screen.width-710)/2 ;	
	var Ypos = (screen.height-450)/2 ;	
	
	documentWindow = window.open('http://www.netronline.com/datastore/tour/tour_01.htm' ,'Tour', 'toolbar=no,location=no,status=no,scrollbars=yes,width=710,height=450,screenX="+Xpos+",screenY='+Ypos+',Left='+Xpos+',Top='+Ypos)
	}


function confirmAndGo(p_msg, p_url) {
	var agree=confirm(p_msg);
	if (agree)
		location.href=p_url;
	else
		return false ;
	}


function confirmAndGoRuntimeControl(p_msg) {
	var agree=confirm(p_msg);
	return agree;
	}

