function openWindow(url)
{
xwidth=screen.width/2-349;
xheight=screen.height/2-237;

var nwin=window.open("",'LoverlyStudio',"width=699, height=475, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Galler</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=699 height=475>");
nwin.document.write("<param name=movie value=photo.swf?test=enlarge/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=photo.swf?test=enlarge/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=699 height=475></embed></object></body></html>");
}


function openWindow1(url)
{
xwidth=screen.width/2-349;
xheight=screen.height/2-177;

var nwin=window.open("",'LoverlyStudio',"width=699, height=355 top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Galler</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=699 height=355>");
nwin.document.write("<param name=movie value=xphoto.swf?test=enlarge/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=xphoto.swf?test=enlarge/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=699 height=355></embed></object></body></html>");
}

function open498x640(url)
{
xwidth=screen.width/2-275;
xheight=screen.height/2-275;

var nwin=window.open("",'LoverlyStudio',"width=553, height=550, scrollbars=yes, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Galler</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=535 height=730>");
nwin.document.write("<param name=movie value=498x640.swf?test=enlarge/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=498x640.swf?test=enlarge/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=535 height=730></embed></object></body></html>");
}

function open576x432(url)
{
xwidth=screen.width/2-300;
xheight=screen.height/2-261;

var nwin=window.open("",'LoverlyStudio',"width=600, height=522, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Galler</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=600 height=522>");
nwin.document.write("<param name=movie value=576x432.swf?test=enlarge/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=576x432.swf?test=enlarge/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=600 height=522></embed></object></body></html>");
}

function open670x383(url)
{
xwidth=screen.width/2-340;
xheight=screen.height/2-237;

var nwin=window.open("",'LoverlyStudio',"width=700, height=475, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Gallery</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=700 height=475>");
nwin.document.write("<param name=movie value=670x383.swf?test=enlarge/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=670x383.swf?test=enlarge/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=700 height=475></embed></object></body></html>");
}

function black670x383(url)
{
xwidth=screen.width/2-340;
xheight=screen.height/2-237;

var nwin=window.open("",'LoverlyStudio',"width=700, height=475, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Gallery</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=700 height=475>");
nwin.document.write("<param name=movie value=670x383.swf?test=images/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=670x383.swf?test=images/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=700 height=475></embed></object></body></html>");
}

function black498x640(url)
{
xwidth=screen.width/2-340;
xheight=screen.height/2-237;

var nwin=window.open("",'LoverlyStudio',"width=700, height=475, top="+xheight+", left="+xwidth+"");
nwin.document.writeln("<html><head><title>Loverly Studio Gallery</title></head><body topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 ><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=700 height=475>");
nwin.document.write("<param name=movie value=498x640.swf?test=images/"+url+"><param name=quality value=high>");
nwin.document.writeln("<embed src=498x640.swf?test=images/"+url);
nwin.document.writeln("quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=700 height=475></embed></object></body></html>");
}


function checkContact()

{

missinginfo = "";

if (document.contactForm.name.value=="")

{

missinginfo += "\n -  Name";

}



if ((document.contactForm.email.value == "") || 

(document.contactForm.email.value.indexOf('@') == -1) || 

(document.contactForm.email.value.indexOf('.') == -1)) {

missinginfo += "\n - Email address";

}



if(document.contactForm.comments.value == "") {

missinginfo += "\n - Query";

}

if (missinginfo!="") 

{



missinginfo ="_____________________________\n" +

"There is some error in fields:\n" +

missinginfo + "\n_____________________________" +

"\nPlease correct and submit again!";



alert(missinginfo);

return false;

}

else return true;

}



////////////////////////////////////////



function checkemail()

{

	if ((document.orderform.from.value) != (document.orderform.email.value))

	{

		alert("Please check your emails!");

//		document.orderform.from.value="";

//		document.orderform.email.value="";

		document.orderform.from.focus();

	}

}



function checkType()

{

if (document.orderform.radiobutton[0].checked==false || document.orderform.radiobutton[1].checked==false)

{

alert("Please select your order type");

}



}



function selectPhotos()

{

j=(document.forms[0].pictures.value);

x=5;

	for(i=1;i<x;i++)

	{

		if(i<=j){var aa="document.forms[0].fileatt"+i+".disabled=false";}

		else{var aa="document.forms[0].fileatt"+i+".disabled=true";}

		eval(aa);

	}			

}



function submitForm()

{

	if(document.forms[0].name.value=="")

	{

		alert("Please fill your name");

  		return false;

	}

	if((document.forms[0].from.value=="")|| (document.forms[0].from.value.indexOf("@")<=1) ||(document.forms[0].from.value.indexOf(".")<=1))

	{

		alert("Please fill the Email ID Correctly");

  		return false;

	}

	if(document.forms[0].email.value!=document.forms[0].from.value)

	{

		alert("Confermation email ID don't match with Email ID ");

  		return false;

	}

	myOption = -1;

	for (i=document.forms[0].ordtype.length-1; i > -1; i--) {

	if (document.forms[0].ordtype[i].checked) {

	myOption = i;

	}

	}

	if(myOption==-1)

	{

		alert("Please Select your Order Type");

  		return false;

	}

	

	if(document.forms[0].message.value=="")

	{

		alert("Please fill your work description");

  		return false;

	}

	

	if (document.forms[0].fileatt.value=="")

	{

		alert("Pleass fill the file 1 path");

  		return false;

	}

	





var j=document.forms[0].pictures.value;

var x=5;



	for(i=1;i<x;i++)

	{

		if(i<=j)

		{

			if(eval("document.forms[0].fileatt"+i+".value==''"))

			{

				alert("Pleass fill the file "+ eval(i+1) +" path");

				return false;

			}

		}

	}			

document.forms[0].submit();

}	

