var theDomain = "www.jp.newsmail2u.net";
var theLoginFormId = "loginForm";
var theUserNameId = "Id";
var thePasswordId = "Code";
var theSSLId = "";
var theSubmit = "Submit";

function loadSettings()
{
	loadLogin(theLoginFormId, theDomain, theUserNameId, thePasswordId, theSSLId);
	
	if(document.forms[0].Id.value != "")
		document.forms[0].settingOption[0].checked = true;
	else
		document.forms[0].settingOption[1].checked = true;
	
	focusLogin(theLoginFormId, theUserNameId, thePasswordId, theSubmit);
}

function doSubmit()
{
	if(document.forms[0].settingOption[0].checked == true)
		saveLogin(theLoginFormId, theDomain, theUserNameId, thePasswordId, theSSLId, 5);
	else
		saveLogin(theLoginFormId, theDomain, theUserNameId, thePasswordId, theSSLId, 0);

	doLogin(theLoginFormId, theSSLId);

	return (true);
}


var arNewImgPath = new Array("images/menu/home_on.jpg", 
								"images/menu/features_on.jpg", 
								"images/menu/price_on.jpg", 
								"images/menu/faq_on.jpg",
								"images/menu/contact_on.jpg",
								"images/menu/news_on.jpg",  
								"images/menu/service_on.jpg");

var arNewImgObj = new Array();
        function myPreloadImages()
        {
		for(var i = 0; i < arNewImgPath.length; i++)
		{
			arNewImgObj[i] = new Image();
			arNewImgObj[i].src = arNewImgPath[i];
		}
        }
	
	function myImageSwap(strImgObjName, strNewImgPath)
	{
		document.images[strImgObjName].src = strNewImgPath;
	}
	function selectfont(titlesize){  
 if(!document.styleSheets) return;
 

 for(var i=0; i<document.styleSheets.length; i++)
  document.styleSheets[i].title == titlesize ?
   document.styleSheets[i].disabled=false : document.styleSheets[i].disabled=true;
}

function jump(selectlist){
	window.open(selectlist, "_top")
}


function jumpMenu(selectlist){
location=(selectlist.options
[selectlist.selectedIndex].value);
}

function checkrev(form){

  for(i=0;i<form.elements.length;i++) {
  	if (form.elements[i].type=="checkbox"){
	    if(form.elements["delete"].checked) {
	      form.elements[i].checked = true;
	    }
	    else {
	      form.elements[i].checked = false;
	    }
	   }
  }
}


