<!--

function printflash(src, w, h)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" VIEWASTEXT>');
document.write('<param name="movie" value="'+src+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="opaque">');
document.write('<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="opaque">');
document.write('</object>');	
}


function printorder(printorder, id)
{
window.open("printorder.asp?printorder=" + printorder + "&id=" + id,null,"width=620, height=450, scrollbars=1")
}
function op(id)
{
	if(document.getElementById(id).style.display=="none")
		document.getElementById(id).style.display="";
	else
		document.getElementById(id).style.display="none";	
}

function ord(url){window.location.href=url;}

function verification(){window.open("verification.asp",null,"width=800,height=500,scrollbars=1");}
function enlargeG(id){window.open("enlargeG.asp?id=" + id,null,"width=450,height=450,scrollbars=0");}
function enlarge(id){window.open("enlarge.asp?id=" + id,null,"width=450,height=450,scrollbars=0");}

function setvideotape(val)
{
	var arr = val.split("-");
	document.form1.videotapeFrom.value=arr[0];
	document.form1.videotapeTo.value=arr[1];
	document.form1.submit();
}

function setvideotape1(val)
{
	var arr = val.split("-");
	document.videotodvd.videotapeFrom.value=arr[0];
	document.videotodvd.videotapeTo.value=arr[1];
	document.videotodvd.submit();
}


function addorder_to_video()
{
	if(document.videotodvd.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.videotodvd.action="addordervideo.asp";
	document.videotodvd.submit();
	return true;
}

function addorder_to_dvd()
{
	if(document.videotodvd.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.videotodvd.action="addorderdvd.asp";
	document.videotodvd.submit();
	return true;
}

function addorderDVD()
{
	if(document.form1.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.form1.action="addorderdvd.asp";
	document.form1.submit();
	return true;
}



function show(c)
{
	if(c == "US" || c == "CA")
		document.getElementById("st").style.display = "";
	else
		document.getElementById("st").style.display = "none";	
}
function show_s(c)
{
	if(c == "US" || c == "CA")
		document.getElementById("st_s").style.display = "";
	else
		document.getElementById("st_s").style.display = "none";	
}





function getRadioValue(radioName)
{
	var collection;
	collection = document.all[radioName];
	for (i=0;i<collection.length;i++)
	{
		if (collection[i].checked)
			return(collection[i].value);
	}
}
function next(){window.location.href=getRadioValue("radio1");}

function stepnext(){window.location.href="step3.asp";}
function step4(){window.location.href="step3.asp";}


function addorderCanvas()
{
	if(document.form1.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.form1.action="addorderCanvas.asp";
	document.form1.submit();
	return true;
}

function addorder()
{
	if(document.form1.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.form1.action="addorder.asp";
	document.form1.submit();
	return true;
}

function addorder1()
{
	if(document.slidescanning.qty.value=="")
	{
		alert("Insert quantity");
		return false;
	}
	document.slidescanning.action="addorder.asp";
	document.slidescanning.submit();
	return true;
}


function setresolution1(val)
{
	var arr = val.split("-");
	document.slidescanning.scanningtypeFrom.value=arr[0];
	document.slidescanning.scanningtypeTo.value=arr[1];
	document.slidescanning.submit();
}

function setresolution(val)
{
	var arr = val.split("-");
	document.form1.scanningtypeFrom.value=arr[0];
	document.form1.scanningtypeTo.value=arr[1];
	document.form1.submit();
}

function validMail(strEmail) //if valid mail - return true
{
	var r, re;
	var email = new String(strEmail);
	re = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/ig;
	if(email.search(re)==0) 
		return true;
	else
		return false;	
}

function validform()
{
	if(document.contact.fname.value=="")
	{
	alert("Insert first name");
	document.contact.fname.focus();
	return false;
	}
	if(document.contact.lname.value=="")
	{
	alert("Insert last name");
	document.contact.lname.focus();
	return false;
	}
	
	if(document.contact.email.value=="")
	{
	alert("Insert email");
	document.contact.email.focus();
	return false;
	}	
	
	if(!validMail(document.contact.email.value))
	{
	alert("Insert valid email");
	document.contact.email.focus();
	return false;
	}
	document.contact.submit();
	return true;
}
//-->