<!--
	function chk_rad(t, n, msg) {
		for (var i=0; i<n; i++) {
			if (t[i].checked!="0") return true;
		}
		alert(msg);
		return false;
	}
   
	function chk_text(t, msg) {
		if (t.value != '') return true;
		alert(msg);
		t.focus();
		return false;
	}
	
	function chk_select(t, msg) {
		if (t.selectedIndex != 0) return true;
       	alert(msg);
		t.focus();
		return false;
	}
	
	function chk_text_email(t, msg) {
      if (t.value != '') {
        var at = t.value.indexOf('@', 0);
        if (at > 1 && t.value.lastIndexOf('.') > at) {
           return true;
        }
       }
       alert(msg);
       t.focus();
       t.select();
       return false;
   }
   
   function chk_textPassword(t, s, msg) {
		if(s.value == t.value) return true;
		alert(msg);
		s.focus();
		return false;
	}
	
	function chk_number(t, msg){
		var valid = "0123456789";
		var tt = t.value;
		for (var i=0; i < tt.length; i++) {
			temp = "" + tt.substring(i, i+1);
			if (valid.indexOf(temp) == "-1"){
				alert(msg);
				t.focus();
				return false;	
			}
		}	
		return true;
	}
	
	function chk_NumofChar(t, msg, num){
		if(t.value.length > num) return true;
		alert(msg);
		t.focus();
		return false;
	}
	
	function OnKeyPressForTest(){
  		// to allow 0-9 numeric digit in the input field
  		if( event.keyCode < 48 || event.keyCode > 57 ) event.returnValue = false;
	}
	
	function alertmsg(t, url){
		var a = confirm(t, "Yes", "No")
		if (a == true) {
			window.location.href = url;
		}
	}
	
	function popWin(Page,Title,scrbar,w,h) {
	
		LPos = (screen.width - w)/2;
		TPos = (screen.height - h)/2;
	
		window.open(Page,Title,"height="+h+",width="+w+",scrollbars="+scrbar+",resizable=no,maximize=no,left="+LPos+", top="+TPos);
	
	}
	
	function goTo(popThrough) {
		if (!window.opener){
			self.open(popThrough)
		} else if (window.opener.closed){
			window.open(popThrough);
			window.close();
		} else {
			window.opener.location.href = popThrough;
			window.close();
		}
	}
	
	function MM_callJS(jsStr) { //v2.0
  		return eval(jsStr)
	}
   
   function sendIt(fileName) {
      //If the selected file name isn't blank, send it to reader.
      if (fileName != "") {
         location.href=fileName
      }
   	}
   	
   	function sendIt2(fileName) {
      //If the selected file name isn't blank, send it to reader.
      if (fileName != "") {
         //parent.location.href=fileName
         window.open(fileName);
      }
   	}
   	
   	function jump2order(fileName, num, url) {
      //If the selected file name isn't blank, send it to reader.
      if (fileName != "") {
      	if (fileName == num) {
        	location.href=url
        }
      }
   	}
   	
   	function jump2(fileName, url) {
      //If the selected file name isn't blank, send it to reader.
      if (fileName != "") {
      	//if (fileName == num) {
        location.href=url
        //}
      }
   	}
   	
   	function ForumJump(URL) {
	
		if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
		return true;
	}

	//Function to open pop up window
	function openWin(theURL,winName,features) {
	  	window.open(theURL,winName,features);
	}


	//Function to open preview post window
	function OpenPreviewWindow(targetPage, formName){
		
		now = new Date  
		
		//Open the window first 	
	   	openWin('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=680,height=400')
   		
	   	//Now submit form to the new window
	   	formName.action = targetPage + "?ID=" + now.getTime();	
		formName.target = "preview";
		formName.submit();
	}
   
   	function OpenURL(URL, Title){
   		window.open(URL, Title);
   	}
   	
   	function OpenURL2(URL){
   		window.location.href= URL
   	}
   
   function row_over(eRow, bcolor){
      eRow.style.backgroundColor = bcolor;
      eRow.style.cursor = "hand";
    }

    function row_out(eRow, bgcolor){
    	if(bgcolor ==''){
      		eRow.style.backgroundColor = "#EBEBEB";
      	} else {
      		eRow.style.backgroundColor = bgcolor;
      	}
      	eRow.style.cursor = "auto";
    }
    
    function td_over(eRow, aRow, bRow, cRow, aColor, bColor, cColor){
      aRow.style.backgroundColor = aColor;
      bRow.style.backgroundColor = bColor;
      cRow.style.backgroundColor = cColor;
      eRow.style.cursor = "hand";
    }

    function td_out(eRow, aRow, bRow, cRow){
    	aRow.style.backgroundColor = "#8EA3D4";
      	bRow.style.backgroundColor = "#768DC1";
      	cRow.style.backgroundColor = "#005198";
      	eRow.style.cursor = "auto";
    }
    
    function writeWindowStatus(){

		var now = new Date();
		var then = new Date("August 29, 2003");
		var gap = then.getDate() - now.getDate();

		gap = "J - "+gap

		return(gap);

	}
	
	function swapImage(id, image) { 

		document.images[id].src = image; 

	}
	
	//set last shown pointer to none
	var kar = 1

	function ShowDivId(SelId, DivId){
		
		num = SelId //document.getElementById(SelId).value
	
		if( kar > 0){
			//clear last shown
			//get division
			var DivId2 = DivId + kar;
			//change display to none
			document.getElementById(DivId2).style.display = 'none';
			kar = 0
		}
		
		if( num > 0){
			//get division
			var DivId2 = DivId + num;
			//change display to block
			document.getElementById(DivId2).style.display = 'block';
			kar=num
		}
	}
	
	function showdiv(pass) { 
		var divs = document.getElementsByTagName('div'); 
		for(i=0;i<divs.length;i++){ 
			if(divs[i].id.match(pass)){//if they are 'see' divs 
				if (document.getElementById) // DOM3 = IE5, NS6 
					divs[i].style.visibility="visible";// show/hide 
			else 
				if (document.layers) // Netscape 4 
						document.layers[divs[i]].display = 'visible'; 
			else // IE 4 
				document.all.divs[i].visibility = 'visible'; 
			} else { 
		
			if (document.getElementById) 
				divs[i].style.visibility="hidden"; 
			else 
				if (document.layers) // Netscape 4 
					document.divs[i].visibility = 'hidden'; 
				else // IE 4 
					document.all.divs[i].visibility = 'hidden'; 
			} 
		} 
	}
	
	function PopIt(Title,FolderName,ImgName,imgWidth,imgHeight) {  
		self.focus();
		var s1 =     "<TITLE>" + Title + "</TITLE>" +    
					"<BODY onBlur='self.focus()' BGCOLOR='white' leftmargin=0 topmargin=0><TABLE BORDER=0><TR>" +        
					"<TD WIDTH=100% ALIGN=center>"+
					"<a href='Javascript:self.close()'><p align=center><img src=images/" + FolderName + "/" + ImgName + " border=0></a>"    
		var s2 =       "</TD></TR></TABLE></BODY>"   
		popup = window.open("","popDialog","height=" + imgHeight + ",width=" + imgWidth + ",scrollbars=no,resizable=no,maximize=no,left=250,top=200")  
		popup.document.write(s1+s2) 
		popup.document.close()
	
}
		
//-->