// JavaScript Document

function fixFrameHeight(obj,slack) {
	eval("doc = " + obj.id + ".document");
	docheight = doc.body.scrollHeight;
	docheight = (slack) ? docheight + slack : docheight;
	obj.style.height = docheight + "px";
} 

function openPopup(url, h, w) {
    newwindow=window.open(url,'name','height='+h+',width='+w+',scrollbars=yes,menubar=yes,toolbar=no');
	    if (window.focus) {newwindow.focus()}
	return false;
}

function isValidEmail(str) 
{
	var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
    return pattern.test(str);  
}

function stripQuote(str){
	return str.replace(/\'|\"/g,''); 
}
