function valid_email(str) { var re = /^(([^<>()[].,;:s@"]+(.[^<>()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/ if (!str.match(re)) { alert("Invalid Email Address"); return false; } return true; } function validate() { var email = document.getElementById('email'); if (valid_email(email.value)==false){ email.focus() return false } } function swap_image(id, new_image) { var x=document.getElementById(id); x.style.backgroundImage = "url("+ new_image +")"; x.style.backgroundRepeat = "no-repeat"; x.style.height = "30px"; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i" targetDiv.innerHTML = fullTerm; } function hideTerm() { isPopped = false; targetDiv.style.display = 'none'; targetDiv.innerHTML = ""; } function createTermPop() { idName = "dynDivPop"; newTerm = document.createElement('div'); newTerm.setAttribute('id', idName); document.body.appendChild(newTerm); return idName; } function swapBioPic(modelName,picNum) { $("#bioPic").attr("src", '/images/media-room/gaming-girls/girls/' + modelName + picNum + '.jpg' ); } function toggleQuestion(qName) { if (document.getElementById(qName).style.display != 'block') { show(qName); } else { hide(qName); } }