// JavaScript Document
var browser=navigator.appName + " " + navigator.appVersion;
function pop(szthis) {
		var w = 400;
		var h = 130;
		var winl = (screen.width/2 - w/2) ;
		var wint = (screen.height/2 - h/2) ;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes';
		popup = window.open(szthis,'Product', winprops);
		if(popup.opener == null) popup.opener = window;
		popup.opener.name = 'opener';
	}
	
function popupwin(width,height,page,name,scrollbars)	{
		var w = width;
		var h = height;
		var winl = (screen.width/2 - w/2) ;
		var wint = (screen.height/2 - h/2) ;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrollbars;
		window.open(page,name,winprops);
		}
		
		

	var win= null;
	function NewWindow(mypage,myname,w,h,scroll){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
	win=window.open(mypage,myname,settings)
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	}
	
	<!--- ***** Opens a window of your size in the middle of the page --->
	<!--- 		Takes Parameters								  	  --->
	<!--- 			szthis = the page that you want to open 		  --->
	<!---  			width  = width of the page						  --->
	<!---  			height = height of the page 					  --->
	<!--- 			scroll = takes 'yes' or 'no'					  --->
	<!--- ***************************************** jlewisiii ******* --->
	function openNewWindow(szthis,width,height,scroll){
		centerPopUp(width,height,scroll);
		window.open(szthis,'NewWindow', winprops);
	}
	
	//this function will center any page that you are popping up with three variables... width,height,scrolling
	function centerPopUp(mywidth,myheight,myscroll) {
		var w = mywidth;
		var h = myheight;
		var winl = (screen.width/2 - w/2) ;
		var wint = (screen.height/2 - h/2) ;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+ myscroll;
		return winprops;
	}
	
	
function GoBaby(szthis) {
	var tLogName = szthis.selectedIndex;
	if (szthis.options[tLogName].value == "CNew") {
		var tName = prompt("Enter a name for the new call log:", "My call log");
	}
	else {
		if (szthis.options[tLogName].value == "FNew" || szthis.options[tLogName].value == "GNew") {
			var tName = prompt("Enter a name for the new favorite folder:", "My Favorites");
		}
		else {
			var tName = "";
		}
	}
	document.myform.txtCallLog.value = tName;
	// make sure the user did not cancel the new folder or call log
	if ((szthis.options[tLogName].value == "CNew") || (szthis.options[tLogName].value == "FNew")){
		if (tName != null){
			document.myform.submit();		
		}
	}
	else{
		document.myform.submit();
	}
}
	

	