// JavaScript Document
function openWin(page) {
	newWin = window.open(page,'popupWindow','left=150px, top=140px, width=700px, height=500px, scrollbars=yes, resizable=yes');	
	newWin.focus();
}

function imgWin() {
	newWin = window.open('img_list.php','imgWin','left=80px, top=90px, width=700px, height=480px, scrollbars=yes');
	newWin.focus();
}

function uploadWin() {
	newWin = window.open('upload.php','uploadWin','left=100px, top=140px, width=700px, height=250px, scrollbars=yes, status=yes');
	newWin.focus();
}

function helpWin(url) {
	newWin = window.open(url,'helpWin','left=100px, top=80px, width=700px, height=600px, scrollbars=yes');
	newWin.focus();
}

function closeWin() {
	window.close();	
}
//what you looking at mutha fucka!!!
function enq(enq_form) {
	if(enq_form.name.value == "") {
		alert("You have not entered a name");
		enq_form.name.focus();
		enq_form.name.select();
		return false;
	}
		if(enq_form.email.value == "") {
		alert("You have not entered your email address");
		enq_form.email.focus();
		enq_form.email.select();
		return false;
	}
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	if(!re.test(enq_form.email.value)) {
		alert("You have entered an invalid email address");
		enq_form.email.focus();
		enq_form.email.select();
		return false;
	}
	if(enq_form.message.value == "") {
		alert("You have not entered a message");
		enq_form.message.focus();
		enq_form.message.select();
		return false;
	}
	return true;
}