<!-- shopping cart button check -->

function buttoncheck(e) {

        if (document.all && event.button==2) {

                document.all.orderwindow.style.visibility="visible"

                alert("Please order my HTML-source by email!")

                return false

        }

        if (document.layers && e.which==3) {

                document.orderwindow.visibility="visible"

                alert("Please order my HTML-source by email!")

                return false

        }

}

function sendmail() {

        if (document.all) {

                document.all.orderwindow.style.visibility="hidden"

                document.forms[0].submit()

        }

        if (document.layers) {

                document.orderwindow.visibility="hidden"

                document.orderwindow.document.forms[0].submit()

        }

}

function closewindow() {

        if (document.all) {

                document.all.orderwindow.style.visibility="hidden"

        }

        if (document.layers) {

                document.orderwindow.visibility="hidden"

        }

}

if (document.layers) {

document.captureEvents(Event.MOUSEDOWN);

}

document.onmousedown=buttoncheck;

// -->



function setVariables(){

if (navigator.appName == "Netscape") {

	v=".top=";

	dS="document.";

	sD="";y="window.pageYOffset" }

else

{

	v=".pixelTop=";

	dS="";

	sD=".style";

	y="document.documentElement.scrollTop"}

}

function checkLocation(){

	object="object1";

	yy=eval(y);

	//alert(dS+object+sD+v+yy) ;

	eval(dS+object+sD+v+yy);

	window.setTimeout("checkLocation()",1000)

}

//tmtC_NNresizeFix

if (document.layers) {

origWidth = innerWidth;

origHeight = innerHeight;}

function reDo() {

if (innerWidth != origWidth || innerHeight != origHeight)

location.reload();}

if (document.layers) onresize = reDo;

//tmtC_NNresizeFixEnd


<!--  form validation -->

function validateValues(theForm) {
    if (theForm.size && theForm.size.selectedIndex==0) {
       alert('Please choose a size');
       theForm.size.focus();
        return false
    }
    if (theForm.color && theForm.color.selectedIndex==0) {
       alert('Please choose a color');
       theForm.color.focus();
        return false
    }
    if (theForm.multi && theForm.multi.selectedIndex==0) {
       alert('Please select a price');
       theForm.multi.focus();
        return false
    }
    return true
}