<!--  
//***************************************
//This script is for the pop up windows.

var newWindow
function picViewSG(name) {
picNumber = name;
	newWindow = window.open("","","height=600,width=525")
	addTextSG();
}

function addTextSG() {
	var winContent = '<html><head><title>LazyDazy.net Stained Glass</title><link rel="stylesheet" type="text/css" href="main.css"></head>'
	winContent += '<body marginwidth="15" marginheight="10">'
	winContent += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr><td align="center">'
	
	winContent += '<img src="images/stainedglass/' + picNumber + '.jpg" alt="" border="0" style="border : #FFF041 2px solid;" >'
	winContent += '<FORM><INPUT class="formbut" type="Button" VALUE="Close Window" onClick="self.close()"></FORM>'
	winContent += '</td></tr></table>'
	winContent += '</body></html>'
	newWindow.document.write(winContent)
	newWindow.document.close()
}

function picViewFA(name) {		//view Fine Art files
picNumber = name;
	newWindow = window.open("","","height=600,width=525")
	addText();
}

function addText() {
	var winContent = '<html><head><title>LazyDazy.net Fine Art</title><link rel="stylesheet" type="text/css" href="main.css"></head>'
	winContent += '<body marginwidth="15" marginheight="10">'
	winContent += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr><td align="center">'
	
	winContent += '<img src="images/fineart/' + picNumber + '.jpg" alt="" border="0" style="border : #FFF041 2px solid;" >'
	winContent += '<FORM><INPUT class="formbut" type="Button" VALUE="Close Window" onClick="self.close()"></FORM>'
	winContent += '<p class="size75">Printed images will NOT have our logo watermark.</p></td></tr></table>'
	winContent += '</body></html>'
	newWindow.document.write(winContent)
	newWindow.document.close()
}

//***************************************
function picViewFlA(name) {		//view Floral Art files
picNumber = name;
	newWindow = window.open("","","height=600,width=525")
	addTextFlA();
}

function addTextFlA() {
	var winContent = '<html><head><title>LazyDazy.net Floral Art</title><link rel="stylesheet" type="text/css" href="main.css"></head>'
	winContent += '<body marginwidth="15" marginheight="10">'
	winContent += '<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr><td align="center">'
	
	winContent += '<img src="images/fineart/' + picNumber + '.jpg" alt="" border="0" style="border : #FFF041 2px solid;" >'
	winContent += '<FORM><INPUT class="formbut" type="Button" VALUE="Close Window" onClick="self.close()"></FORM>'
	winContent += '</td></tr></table>'
	winContent += '</body></html>'
	newWindow.document.write(winContent)
	newWindow.document.close()
}

//<a href="#1" onClick="picView('daisy-longdiamond')"><img src="images/stainedglass/daisy-longdiamond-sm.jpg" width="137" height="246" alt="" border="0"></a>


//***************************************
//Contact Us validation script

function checkValues() {
	if (document.frmContact.realname.value == "") {
		alert ("Please complete your name.")
		document.frmContact.realname.focus()
		return false
	}

	if (document.frmContact.email.value == "") {
		alert ("Please complete your email address so we may contact you.")
		document.frmContact.email.focus()
		return false
	}
	
	return true
	document.frmContact.submit()
}

//***************************************
//this is for "back" buttons throughout the website.
function goback() {   
	history.back(1)
	}
	
//***************************************
//Show New Animation gif
function checknew(date) {
var pic = "images/new-ani.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + ">");
}

//***************************************
//Show Main New jpg
function checkmain(date) {
var pic = "images/main-new2.jpg";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + " width=\"600\" height=\"54\">");
}

//-->


