// function to chk if the key entered is enter key
function ifEnterKey(event){
     if (document.all) {
        kcode=window.event.keyCode;
     }
     else
        kcode=event.which;

     if (kcode==13) {
        return true;
     }
     else {
        return false;
     }
}
function checkSearchEnter(event){
    if(ifEnterKey(event))
        return keySearch();
    return true;
}
function keySearch() {
    document.searchForm.submit();
    return true;
}

//for gallery pages
function popupcheck(id,ornt){
//window.open("imagepopup.jsp?id="+id+"&ornt="+ornt,
window.open("galleryimagepopup.jsp?id="+id+"&ornt="+ornt,
'addpopup',
'height=701,width=700,left=0,top=0,scrollbars=no,resizable=no');

}



//for gallery pages
function popupenlarge(id,ornt){
window.open("enlargement.jsp?id="+id+"&ornt="+ornt,
'addpopu1',
'height=501,width=701,left=50,top=50,scrollbars=no,resizable=no');

}

//for closing popups
function popupclose(){
    window.close();
}


function openVideoPop() {
	window.open("videopop.jsp",'videopop','height=501,width=501,left=50,top=50,scrollbars=yes,resizable=no');
	return true;
}
