//
// PoetsCart - (C) 2008 Poets Road Inc (cs@poetsroad.com)
// Author: Marcus Mueller
// Contributions By: Sean McLean
// Technical Support: 818-955-5414
// Official Website: http://www.poetsroad.com
// @@ Version: 1.6
// All Rights Reserved.
// Modification or Resale Prohibited.
// NOT FOR USE WITHOUT ACTIVE LICENSE
//
function goto(page) {
	 location.href = page;
}

function largeimg(imgName) {
	 window.open(imgName, 'product_popup', config='height=525, width=525, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no, statusbar=no');
}

function video_popup(template) {
	 window.open('templates/'+template,null,'height=375,width=450,status=no,toolbar=no,menubar=no,location=no');
}

function popup_win(template,width,height) {

window.open('templates/'+template,null,'height='+height+',width='+width+',left=10,top=10,status=no,toolbar=no,menubar=no,location=no');
}


function  _CF_check_contact(_CF_this)
{
	if  (!_CF_hasValue(_CF_this.firstname, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.firstname, _CF_this.firstname.value, "Please enter your first name."))
		{
			return false;
		}
	}

	if  (!_CF_hasValue(_CF_this.email, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.email, _CF_this.email.value, "Please enter your email address."))
		{
			return false;
		}
	}

	if  (!_CF_hasValue(_CF_this.phone, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.phone, _CF_this.phone.value, "Please enter your contact number."))
		{
			return false;
		}
	}

	return true;
}

