

//This function opens a popup window with a specipied url



function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=350,left = 80,top = 80');");

}







//This function validateds form before subbmiting



function Checkall() {

        if (document.Frm.name.value == '') {

                alert("Enter your name");

                document.Frm.name.focus();

                return false;

        }

        if (document.Frm.email.value == '') {

                alert("Enter your E-mail address");

                document.Frm.email.focus();

                return false;

        }

        if (document.Frm.email.value.indexOf('@') < 0) {

                alert("Invalid Email address");

                document.Frm.email.focus();

                return false;

        }

        if (document.Frm.email.value.indexOf('.') < 0)

        {

                alert("Invalid Email address.");

                document.Frm.email.focus();

                return false;

        }

        if (document.Frm.country.value == '') {

                alert("Enter your country");

                document.Frm.country.focus();

                return false;

        }

        document.Frm.submit();

        }

        

//This fuction opens large windows of jute bag pictures



function popUppic(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=360,left = 80,top = 80');");

}

 

function popUppicstick(URL) {

day = new Date();

id = day.getTime();



eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=322,height=450,left = 80,top = 80');");

}


function popUppicbig(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=330,left = 80,top = 80');");

}

function popUppicbigvertical(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=590,left = 80,top = 40');");

}

function popUppicbigver(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=266,height=450,left = 80,top = 80');");

}