﻿<!--
function windowOpener(url, name, args) {
	if (typeof(popupWin) != "object"){
		popupWin = window.open(url,name,args);
	} else {
		if (!popupWin.closed){ 
			popupWin.location.href = url;
		} else {
			popupWin = window.open(url, name,args);
		}
	}
	popupWin.focus();
	popupWin.location.href = url;
}

function checkFeedback(form1) {
	if (form1.name.value==""){
		alert("please enter your name");
		form1.name.focus();
		return false;
	}

	if (form1.email.value==""){
		alert("please enter an email");
		form1.email.focus();
		return false;
	} else {
		if (!((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form1.email.value)))){
			alert("Invalid E-mail Address! Please re-enter.");
			form1.email.focus();
			return false;
		}
	}

	if (document.getElementById('friend_email')){
	if (form1.friend_email.value==""){
		alert("please enter your friend email");
		form1.friend_email.focus();
		return false;
	} else {
		if (!((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form1.friend_email.value)))){
			alert("Invalid E-mail Address! Please re-enter.");
			form1.friend_email.focus();
			return false;
		}
	}
	}
	
	if (form1.comments.value==""){
		alert("please enter your message");
		form1.comments.focus();
		return false;
	}
}

function CreateBookmarkLink() { 
title = "Ali Baba Fine Lebanese Cuisine in Las Vegas";   
// Blogger - Replace with <$BlogItemTitle$>   
// MovableType - Replace with <$MTEntryTitle$> 
url = "http://www.alibabalasvegas.com/";  
// Blogger - Replace with <$BlogItemPermalinkURL$>   
// MovableType - Replace with <$MTEntryPermalink$>  
// WordPress - <?php bloginfo('url'); ?>
	if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title); 
	} else if(window.opera && window.print) { // Opera Hotlist
			return true;
	} 
} 

//-->
