/*
	version of 2005-12-15 08:00:00
	
	Utility functions for opening and positioning sub-windows from the ImportExportWizard site.
	
*/
 var isNav, isIE;
 
 if (parseInt(navigator.appVersion) >= 4) {
      if(navigator.appName == "Netscape")
        isNav = true
      else
        isIE = true;
}

win2=null;
	
function winhlp(helpfile, tagz){
	// Open a help window
	   win2=window.open(helpfile + '#' + tagz + '', 'kodomo',
			'scrollbars=yes,resizable=no,status=no,left=700,screenX=700,width=425,height=300');
 }
	
function winf(urlx, spz){
	winz2=null;
	winz2=window.open(''+urlx+'?spselectorid='+spz+'', 'kodomo1', 'scrollbars=yes,left=170,screenX=170,width=800');
}

function winz(spz){		
 	winoz=window.open('selector.php?spselectorid='+ spz + '', 'kodomo1',
			'scrollbars=yes,left=170,screenX=170,width=820,height=700');
}   


function winz2(spz){	    
	winx=window.open('selectorremove.php?spselectorid='+ spz + '', 'kodomo1',
			'scrollbars=no,left=170,screenX=170,width=550,height=350');
}

function clz(){	
	if(win2!=null){    
		win2.close();
	}   
} 
	
function chngStat(zmsg){	    
   window.status=zmsg;
   return true;
} 
	
function clrStat(){	    
	window.status='';
	return true;
} 
	
	
function getcoords(e) {
    x = window.event.clientX + document.documentElement.scrollLeft
      + document.body.scrollLeft;
    y = window.event.clientY + document.documentElement.scrollTop
      + document.body.scrollTop;

	return x, y; 
}


function init() {
	if (window.Event) {
    	document.captureEvents(Event.MOUSEDOWN);
  	}
	document.onmousedown = getcoords;
}

function dispx(el, trg){
		
	if (el.style.display=="none"){
		el.style.left=x-300;
		el.style.top=y+15;
		el.style.display="inline";
		frames['shim'].location.href="help2.php?sect=" + trg;
		frames['shim'].offsetTop=y+15;
		frames['shim'].offsetLeft=x-300;
	}
	else {
		if (el.style.display!="none"){
			el.style.display="none";
		}
	}
}
		
function texx(el){
	document.getElementbyId(el).innerHTML="Yeah";
}
