ns=(document.layers)?true:false;
ns6=(document.getElementById&&!document.all)?true:false;
ie=(document.all)?true:false;
loaded=0;


// Popup Window Functions 
	var newWin;

	function popUp200x150(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=220,HEIGHT=175,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=220,HEIGHT=175,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}

	function popUp600x400(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=600,HEIGHT=400,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=600,HEIGHT=400,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}


	function popUp640x480(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=640,HEIGHT=480,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=640,HEIGHT=480,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}


	function popUp750x255(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=750,HEIGHT=255,resizable=yes,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=750,HEIGHT=255,resizable=yes,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}

	function popUpSemaphore(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=800,HEIGHT=600,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=800,HEIGHT=600,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}
	
	
	function opencredit(){
 		window.open('ccv/ccard.htm', 'ccv', 'width=450,height=320')
	}


	function popUp750x500(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=750,HEIGHT=523,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=750,HEIGHT=523,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}

	function popUp450x350(theUrl){
		var thisUrl = theUrl;
		var theFeatures = "WIDTH=450,HEIGHT=350,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no";
		if (newWin != null && !newWin.closed) { 
		      newWin.close();
			}
		newWin=window.open(thisUrl,"pop","WIDTH=450,HEIGHT=350,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no");
		newWin.focus();
	}
	

	function opencredit(){
 		window.open('ccv/ccard.htm', 'ccv', 'width=450,height=320')
	}

	

function validEmail(email) {
	invalidChars = " /:,;"
	for (i=0; i<invalidChars.length; i++) {	// does it contain any invalid characters?
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) > -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)			// there must be one "@" symbol
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {					// and at least one "." after the "@"
		return false
	}
	if (periodPos+3 > email.length)	{		// must be at least 2 characters after the "."
		return false
	}
	return true
}

