function EnterCheck(nextfocus){

   if(event.keyCode ==13 && (nextfocus=="submit")){ 
      document.frm01.submit();
   } 

   if(event.keyCode ==13){ 
       eval('document.frm01.' + nextfocus + '.focus();');
   }
}

function goOptn(site) {
    if (site != "") 
    {
        if ( site.toUpperCase() == "NO"){}               
        else{
        	
        	if (site.indexOf("http://") > -1) 
        		NewWin = window.open(site);
        	else
            	location.href = site ;
        }
    }
}

function goOptnF(target, site) {
    if (site != "") 
    {
        if ( site.toUpperCase() == "NO"){}               
        else{
            eval('parent.' + target + '.location.href = site')
        }
    }
}

function goOptnFF(target, site) {
    if (site != "") 
    {
        if ( site.toUpperCase() == "NO"){}               
        else{
            eval('parent.parent.' + target + '.location.href = site')
        }
    }
}

function winOpen(URL, winName,features)
{  
	// toolbar=no,alwaysRaised=yes,location=no,status=no,menubar=no,scrollbars=no,width=268,height=428,resizable=no,hotkey=no,dependent=yes,screenX=100,screenY=100
	wmap = window.open(URL,winName , features);
	wmap.focus;
}

function showDate(SelMonthName, SelDayName) {
	var todays = new Date();
	month = todays.getMonth();
	date = todays.getDate();
	
	//alert('SelMonthName[' + month + '].selected=true;');
	eval('SelMonthName[' + month + '].selected=true;');
	eval('SelDayName[' + (date-1) + '].selected=true;');
}

function preLoad(){
	if( !document.images ) return 	

	var i,j,k
	
	for( i=0, j=preLoad.arguments.length; i<j; i++ ){
		k = preLoad.arguments[i]
		eval( 'i_' +k+ ' = new Image()' )
		eval( 'i_' +k+ '.src = imgDir + "' +k+ '.gif"' )	
	}
}

