function Newsnet_Login() {
	if((document.LoginForm.txt_UserId.value=="")&&(document.LoginForm.txt_Password.value=="")){return}

	if ((screen.Height >= 0) && (screen.Width >= 0)) {
		var height = screen.Height - 90;
		var width = screen.Width - 10;
	}
	else if ((screen.availHeight >= 0) && (screen.availWidth >= 0)) {
		var height = screen.availHeight - 90;
		var width = screen.availWidth - 10;
	}
	var targetname="";
	var targetname="NewsnetWebAccess";
	//var destinationURL = "http://"+window.location.hostname+"/WebAccess/Main.asp?MainType=1"
	var destinationURL = "https://www2.newsnet.com/WebAccess/Main.asp?MainType=1"
	msg=window.open(destinationURL,targetname,"toolbar=0,status=0,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);	
	document.LoginForm.target=targetname;
	document.LoginForm.action = destinationURL //"http://"+window.location.hostname+"/WebAccess/Main.asp?MainType=1"
	document.LoginForm.submit();
	document.LoginForm.txt_Password.value = "";
	document.LoginForm.txt_UserId.value = "";	
}

function Newsnet_LoginOnEnterClick() {
	if(window.event.keyCode==13) {Newsnet_Login();}
}

function Newsnet_LoginUserID() {		
	document.LoginForm.txt_UserId.focus();
}

function openTour(pUrl){

	if ((screen.Height >= 0) && (screen.Width >= 0)) {
		var height = screen.Height - 180;
		var width = screen.Width - 130;
	}
	else if ((screen.availHeight >= 0) && (screen.availWidth >= 0)) {
		var height = screen.availHeight - 180;
		var width = screen.availWidth - 130;
	}
	var targetname="";
	var targetname="NewsnetWebAccess";
	var destinationURL = "http://"+window.location.hostname+pUrl	
	msg=window.open(destinationURL,targetname,"toolbar=0,status=0,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);	
}
/*******************************************************
	DYNAMIC FORM FIELD MANIPULATION
	*******************************************************/
	function passwordToggle(textInputObject, pwdInputObject) {
		// hide the input field
		textInputObject.style.display = "none";
		
		// reveal the password field
		pwdInputObject.style.display = "inline";
		pwdInputObject.focus();
	}
	function clearInputField(fieldToClear, defaultText) {
		if (fieldToClear.value == defaultText)
		fieldToClear.value="";
		//document.LoginForm.txt_Password.type = "password";
	}



