function click() {
	if ((event.button==2) || (event.button==3)) {
		alert('Thank you!!');
	}
}
document.onmousedown=click

if (navigator.appName == "Netscape") {
	document.captureEvents(Event.MOUSEDOWN)
	document.onmousedown = checkClick

	function checkClick(ev) {
			if (ev.which != 1) {
					alert('Thank you!!');
					return false
			}
	}
}


function myopenwindow(url) {       
	if (((navigator.appCodeName == 'MSIE') && (navigator.appVersion.substring(0,1) > 3)) || ((navigator.appCodeName == 'Mozilla') && (navigator.appVersion.substring(0,1) > 3))) {       
		// User's browser is IE or Netscape, version 4 or greater 
		// we can determine their screen resolution       
		       
		if (screen.height <= 480) {bigWindow = window.open(url, "bigWindow", "toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=yes,width=600,height=380"); return}       
		if (screen.height <= 600) {bigWindow = window.open(url, "bigWindow", "toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=yes,width=640,height=420"); return}       
		bigWindow = window.open(url, "bigWindow", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=800,height=600"); return       
	} else {       
		bigWindow = window.open(url, "bigWindow", "toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=yes,width=600,height=380")       
	}       
}

function myloginsubmit() {          
	document.loginfrm.submit();    
}    


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		exhostservice_extest_01_over = newImage("images/exhostservice_extest_01-ove.gif");
		preloadFlag = true;
	}
}

function viewProductImage(itemcode)
{
	productImageWin = window.open("viewproduct.asp?itemcode=" + itemcode,"Product","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=500,height=400");    
}

function ValidLength(item, len)
{
	return(item.length >= len);
}

function finputlistsample()
{
	inputlistsampleWin = window.open("admin_inputsample.htm","InputListSample","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=800,height=300");    
}


function openphotowindow()
{
    checkwin = window.open("choosephoto_index.asp" ,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0, width=700,height=600");
}


function fclosephotowindow() {  
    //alert( "hello" );
    for( i = 0 ; i < 20 ; i++ ) {
        if (document.photoframe.gallery[i].checked == true) {
           strgallery = document.photoframe.gallery[i].value;
        }
    }
    //alert( strgallery );
    retGalleryPath = strgallery
    //alert( retGalleryPath );
    window.opener.document.mainform.photopath.value = retGalleryPath;
    //window.opener.document.orderfrm.userid.value = document.checkform.userid.value;
    self.close();
}       


