<!--
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ie){
document.write('<style type="text/css">')
document.write('.BUTTON { font-size:8pt; font-family:verdana, arial, helvetica; font-weight:bold; color:#ffffff; ')
document.write(' border-style:solid; border-color:#C0C0C0; border-width:1px; background-color:#C0C0C0;} ')
document.write('.textfield {background-color:#FFFFFF;border-color: #808080;border-style: solid;border-width: 1;color:#C0C0C0;font-size: 8pt;font-family: verdana;}')
document.write('.submitter {background-color: #808080; border-color: #CCCCCC; border-width: 2; color: #FFFFFF; font-size: 8pt; font-family: verdana; font-weight: bold;}')
document.write('.fielder {border-color: #C0C0C0; border-width: 1; color: #808080; font-size: 8pt; font-family: verdana; font-weight: bold; }')
document.write('</style>')
}

function UserConcatenate()
{
	var sLogin=document.frmLogin.cLogin.value;
	if (sLogin.indexOf('@') == -1)
	{
		document.frmLogin.cLogin.value = document.frmLogin.cLogin.value + "@smscorp.com";
	}
}

function AllViewP() {
		var turnOn=true;
		if (document.RemitAdmin.allviewp.value=="Check All") {
				document.RemitAdmin.allviewp.value="UnCheck All";
				turnOn=true;
			} else {
				document.RemitAdmin.allviewp.value="Check All";
				turnOn=false;
			}
		for (iLoop = 0; iLoop < document.RemitAdmin.viewableP.length; iLoop++) {				
			document.RemitAdmin.viewableP(iLoop).checked=turnOn;
			}
	}
	
function AllViewF() {
		var turnOn=true;		
		if (document.FASTOrderAdmin.allviewp.value=="Check All") {
				document.FASTOrderAdmin.allviewp.value="UnCheck All";
				turnOn=true;				
			} else {
				document.FASTOrderAdmin.allviewp.value="Check All";
				turnOn=false;				
			}
		for (iLoop = 0; iLoop < document.FASTOrderAdmin.viewableP.length; iLoop++) {				
			document.FASTOrderAdmin.viewableP(iLoop).checked=turnOn;			
			}
	}
function AllViewF1() {
		var turnOn=true;			
		if (document.FASTOrderAdmin.allviewp1.value=="Check All") {
				document.FASTOrderAdmin.allviewp1.value="UnCheck All";
				turnOn=true;				
			} else {
				document.FASTOrderAdmin.allviewp1.value="Check All";
				turnOn=false;								
			}
		for (iLoop = 0; iLoop < document.FASTOrderAdmin.viewableP1.length; iLoop++) {				
			document.FASTOrderAdmin.viewableP1(iLoop).checked=turnOn;					
			}
	}

function sub() {	
	window.opener.location.reload();
	close();
	return true;
}

function Cancel_onclick(){ 	
	close()
}	

function ClipBoard() 
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}

function Resizer(pW, pH) {
	var w=pW, h=pH;
	if (w >= screen.availWidth)  w = screen.availWidth - 50; 
	if (h >= screen.availHeight) h = screen.availHeight - 50;
	window.resizeTo(w, h); //Wide by Tall 
	window.moveTo (10,10);
	}
	
function setfocus(e) {
	document.forms[0].elements[e].focus();
}
function Over(color) {
	window.event.srcElement.style.color=color;
}

function Out(colorout) {
	window.event.srcElement.style.color=colorout;
}
function showLayer(doc, layerName){
	eval (doc + 'document.all["' + layerName + '"].style.display=""');
}
function hideLayer(doc, layerName){
	eval (doc + 'document.all["' + layerName + '"].style.display="none"');
}
function PopUp(url, w, h, scroll, toolbar, menubar) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+', toolbar='+toolbar+', menubar='+menubar+', resizable'
	win = window.open(url,'win',winprops)
	win.window.focus();
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

 function jumpURL(newLoc){
    newURL = newLoc.options[newLoc.selectedIndex].value
    if(newURL != ""){
      window.location.href = newURL
   }
}
// Image information
if (document.images) {	 
	Login_on = new Image;          
	Login_on.src = "images/Login_on.jpg";
	Login_off = new Image;          
	Login_off.src = "images/Login_off.jpg";	
}

if (document.images) {
	searchgo_on = new Image;          
	searchgo_on.src = "images/ButtonGo_on.gif";
	searchgo_off = new Image;          
	searchgo_off.src = "images/ButtonGo_off.gif";
}

if (document.images) {
	GetDate_on = new Image;          
	GetDate_on.src = "images/GetDate_on.gif";
	GetDate_off = new Image;          
	GetDate_off.src = "images/GetDate_off.gif";
}
	
function img_on(imgName) {
	if (document.images) { 
       		imgOn = eval(imgName + "_on.src");
       		document [imgName].src = imgOn;
        }
}

function img_off(imgName) {
        if (document.images) {
        	imgOff = eval(imgName + "_off.src");
        	document [imgName].src = imgOff;
        }
}

//-->

